﻿using System.Collections.Generic;
using AgencyManagerSystem.DataFetcher;
using AgencyManagerSystem.Model;

namespace AgencyManagerSystem.DataUpdater
{
    public class OrderUpdater : StatusMainDetailUpdater<OrderModel, OrderDetailModel>
    {
        public OrderUpdater(OrderFetcher fetcher, OrderDetailFetcher dFetcher, MainOrderUpdater updater) : base(fetcher, dFetcher,updater) { }
        public class MainOrderUpdater:StatusUpdater<OrderModel>
        {
            internal MainOrderUpdater() : base(new OrderFetcher()) { }
        }
        public static MainOrderUpdater GetMainUpdater()
        {
            return new MainOrderUpdater();
        }
        public static OrderDetailUpdater GetDetailUpdater()
        {
            return new OrderDetailUpdater(new OrderDetailFetcher());
        }
    }
}

